//package com.ramble.gatewayservice.filter;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.cloud.gateway.filter.GatewayFilterChain;
//import org.springframework.cloud.gateway.filter.GlobalFilter;
//import org.springframework.core.Ordered;
//import org.springframework.http.server.reactive.ServerHttpRequest;
//import org.springframework.stereotype.Component;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
//
///**
// * @Project ramble-spring-cloud
// * @Package com.ramble.gatewayservice.filter
// * @Class GlobalFilter
// * @Date 2022/2/17 10:14
// * @Author MingliangChen
// * @Email chen.mingliang@nghinsights.com
// * @Description
// */
//
////@Component
//@Slf4j
//public class BizGlobalFilter implements GlobalFilter , Ordered {
////    @Override
////    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
////        log.info("gateway-in-全局过滤器。");
//////        Object routeValue = exchange.getAttribute("route");
//////        ServerHttpRequest request = exchange.getRequest().mutate().header(route, (String) routeValue).build();
//////        return chain.filter(exchange.mutate().request(request).build());
////        return null;
////    }
//
//    @Override
//    public int getOrder() {
//        return 0;
//    }
//
//    @Override
//    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
//        log.info("");
//        return null;
//    }
//}
